1e68c690afa79c8c11b43f3e5d229ff0ff592392,plugins/maven/src/main/java/org/jetbrains/idea/maven/utils/MavenJDOMUtil.java,MavenJDOMUtil,findChildValueByPath,#Element#String#String#,144

Before Change



  public static String findChildValueByPath(@Nullable Element element, String path, String defaultValue) {
    Element child = findChildByPath(element, path);
    String childValue = child == null ? null : child.getTextTrim();
    return StringUtil.isEmptyOrSpaces(childValue) ? defaultValue : childValue;
  }

After Change


  public static String findChildValueByPath(@Nullable Element element, String path, String defaultValue) {
    Element child = findChildByPath(element, path);
    if (child == null) return defaultValue;
    String childValue = child.getTextTrim();
    return childValue.isEmpty() ? defaultValue : childValue;
  }